export default {
  username: [
    { required: true, message: '账号必填', trigger: 'blur' },
    {
      pattern: /^(?![0-9]+$)(?![a-zA-Z]+$)[0-9a-zA-Z]{6,8}$/,
      message: '账号格式 非纯数字, 非纯字母 6-12位',
      trigger: 'blur',
    },
  ],
  password: [
    { required: true, message: '密码必填', trigger: 'blur' },
    {
      pattern: /^(?=.*[0-9])(?=.*[a-z])(?=.*[A-Z])[0-9a-zA-Z.!*?#$]{8,12}$/,
      message: '密码格式 至少包含大写字母+小写字母+数字 8-12位',
      trigger: 'blur',
    },
  ],
  email: [
    { required: true, message: '邮箱必填', trigger: 'blur' },
    { type: 'email', message: '请输入正确邮箱格式', trigger: 'blur' },
  ],
  name: [{ required: true, message: '分类内容必填', trigger: 'blur' }],
  nickName: [
    {
      required: true,
      message: '昵称必填',
      trigger: 'blur',
    },
  ],
}
